package com.jing.consumer.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jing.consumer.service.TestService;
import com.jing.domain.User;
import com.jing.service.UserService;


@Service
public class TestServiceImpl implements TestService{
	@Resource
	UserService userService;

	@Override
	public void test() {
		String hello = userService.sayHello("hello");
		System.out.println(hello);
	}
	
	@Override
	public Integer save(User user) {
		return userService.add(user);
	}

	@Override
	public User get(Integer id) {
		return userService.get(id);
	}
	
}
